package com.cskaoyan.market.service.admin;

import com.cskaoyan.market.db.domain.MarketAdmin;

import java.util.List;

public interface MarketAdminService {
    List<MarketAdmin> list(Integer page, Integer limit, String username, String sort, String order);
    List<MarketAdmin> create(String password, String avatar, Integer[] roleIds, String username);
    int delete(Integer id);

    int update(Integer id, String username, String avatar, Integer[] roleIds, String password);

    List<MarketAdmin> listByName(String username);
}
